// import {useWpsRpcStoreWithOut} from "@/store/modules/wpsjs-rpc";

import {
  sdkWpsStartWrapVersion,
  sdkRegWebNotify,
  IsClientRunning, sdkCancelRegWebNotify,
} from '@/views/office/common/wpsjs-rpc-sdk.js'
import {ClientTypes, getHttpObj} from "@/views/office/common/common";


// const wpsjsRpc = useWpsRpcStoreWithOut()


export const InvokeAsHttp = (clientType, name, func, param, callback, showToFront, silentMode) =>{
  sdkWpsStartWrapVersion(clientType, name, func, param, callback, showToFront, silentMode)
}
export const RegWebNotify = (clientType, name,route,officeID, callback) =>{
  sdkRegWebNotify(clientType, name,route,officeID, callback)
}
export const CancelRegWebNotify = (clientType, name,route) =>{
  sdkCancelRegWebNotify(clientType, name,route)
}
export const getWpsEnum = () =>{
  return ClientTypes.wps ;
}
export const getEtEnum = () =>{
  return ClientTypes.et ;
}
